package com.thomasmoerman.dci2.tmc

import org.squeryl.KeyedEntity
import com.thomasmoerman.dci2.frw._

case class MoneyTransfer(
  val accountId: Long,
  val amount: Double) extends KeyedEntity[Long] with Identified

object Increase {
  
  def apply(accountId: Long, amount: Double) = new MoneyTransfer(accountId, amount)

}

object Decrease {

  def apply(accountId: Long, amount: Double) = new MoneyTransfer(accountId, -amount)
  
}